#pragma once

#include "resource.h"
#include "CalcStartParam.h"

class CStartCalcParamDlg : public CDialog
{
	DECLARE_DYNAMIC(CStartCalcParamDlg)

public:
	CStartCalcParamDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CStartCalcParamDlg();
	enum { IDD = IDD_DIALOG_START_CALC };
	virtual BOOL OnInitDialog();

	afx_msg void OnEnChangeEditFrom();
	afx_msg void OnEnChangeEditTo();
	afx_msg void OnBnClickedCheckUseKm();
	afx_msg void OnBnClickedButtonFromSel();
	afx_msg void OnBnClickedButtonFromDef();
	afx_msg void OnBnClickedButtonToSel();
	afx_msg void OnBnClickedButtonToDef();
	afx_msg void OnEnChangeEditTimeFrom();
	afx_msg void OnEnChangeEditTimeTo();
protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnOK();
	DECLARE_MESSAGE_MAP()

public:
	double m_dShift;
	double m_dFromRange;
	double m_dToRange;

	int m_nCount;
	BOOL m_useKM;
	BOOL m_bRangeSame;
	
	double m_dFromTime;
	double m_dToTime;

	BOOL   m_bUseSelectTime;
	double m_dFromDefTime;
	double m_dToDefTime;
	double m_dFromSelTime;
	double m_dToSelTime;
protected:
	CCalcStartParam m_prm;
public:
	afx_msg void OnBnClickedCheckUseSelectTime();
};
